package com.cn.jinl.api;


import com.cn.jinl.domain.FileInfo;
import com.cn.jinl.utils.QueryForm;

import java.util.List;

public interface IFileInfoService {

    List<FileInfo> queryFileList(QueryForm queryForm)throws Exception;

    List<FileInfo> queryFileListByRelateId(String relateId)throws Exception;

    String queryFileListById(String id)throws Exception;

    String addFile(FileInfo fileInfo)throws Exception;
    String addFileWithBlob(String fileBlob)throws Exception;

    String addFileUrl(FileInfo fileInfo)throws Exception;

    String batchAddFile(List<FileInfo> fileInfos)throws Exception;

    String updateFile(FileInfo fileInfo)throws Exception;

    String updateBatchFile(List<FileInfo> fileInfos)throws Exception;

    String updateBatchFileWithOutFile(List<FileInfo> fileInfos)throws Exception;

    String updateFileCheckStatus(List<FileInfo> fileInfos)throws Exception;

    String deleteFileByIds(QueryForm queryForm)throws Exception;

    String deleteFileByIds(List<FileInfo> fileInfos)throws Exception;

    String deleteFileByRelateId(String relateId)throws Exception;
    String deleteFileByType(String type)throws Exception;

    String getAppFileImagePath()throws Exception;

    List<FileInfo> selectFileByRelateId(QueryForm queryForm) throws Exception;

    String addFileByBcsm(FileInfo fileInfo)throws Exception;
}
